Optimal. Leaf size=70 \[ \frac{(4 a+3 b) \tan ^{-1}(\sinh (c+d x))}{8 d}+\frac{(4 a+3 b) \tanh (c+d x) \text{sech}(c+d x)}{8 d}+\frac{b \tanh (c+d x) \text{sech}^3(c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0502423, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {4046, 3768, 3770} \[ \frac{(4 a+3 b) \tan ^{-1}(\sinh (c+d x))}{8 d}+\frac{(4 a+3 b) \tanh (c+d x) \text{sech}(c+d x)}{8 d}+\frac{b \tanh (c+d x) \text{sech}^3(c+d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4046
Rule 3768
Rule 3770
Rubi steps
\begin{align*} \int \text{sech}^3(c+d x) \left (a+b \text{sech}^2(c+d x)\right ) \, dx &=\frac{b \text{sech}^3(c+d x) \tanh (c+d x)}{4 d}+\frac{1}{4} (4 a+3 b) \int \text{sech}^3(c+d x) \, dx\\ &=\frac{(4 a+3 b) \text{sech}(c+d x) \tanh (c+d x)}{8 d}+\frac{b \text{sech}^3(c+d x) \tanh (c+d x)}{4 d}+\frac{1}{8} (4 a+3 b) \int \text{sech}(c+d x) \, dx\\ &=\frac{(4 a+3 b) \tan ^{-1}(\sinh (c+d x))}{8 d}+\frac{(4 a+3 b) \text{sech}(c+d x) \tanh (c+d x)}{8 d}+\frac{b \text{sech}^3(c+d x) \tanh (c+d x)}{4 d}\\ \end{align*}
Mathematica [A] time = 0.104215, size = 60, normalized size = 0.86 \[ \frac{(4 a+3 b) \tan ^{-1}(\sinh (c+d x))+(4 a+3 b) \tanh (c+d x) \text{sech}(c+d x)+2 b \tanh (c+d x) \text{sech}^3(c+d x)}{8 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.021, size = 83, normalized size = 1.2 \begin{align*}{\frac{a{\rm sech} \left (dx+c\right )\tanh \left ( dx+c \right ) }{2\,d}}+{\frac{a\arctan \left ({{\rm e}^{dx+c}} \right ) }{d}}+{\frac{b \left ({\rm sech} \left (dx+c\right ) \right ) ^{3}\tanh \left ( dx+c \right ) }{4\,d}}+{\frac{3\,b{\rm sech} \left (dx+c\right )\tanh \left ( dx+c \right ) }{8\,d}}+{\frac{3\,b\arctan \left ({{\rm e}^{dx+c}} \right ) }{4\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.68479, size = 248, normalized size = 3.54 \begin{align*} -\frac{1}{4} \, b{\left (\frac{3 \, \arctan \left (e^{\left (-d x - c\right )}\right )}{d} - \frac{3 \, e^{\left (-d x - c\right )} + 11 \, e^{\left (-3 \, d x - 3 \, c\right )} - 11 \, e^{\left (-5 \, d x - 5 \, c\right )} - 3 \, e^{\left (-7 \, d x - 7 \, c\right )}}{d{\left (4 \, e^{\left (-2 \, d x - 2 \, c\right )} + 6 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, e^{\left (-6 \, d x - 6 \, c\right )} + e^{\left (-8 \, d x - 8 \, c\right )} + 1\right )}}\right )} - a{\left (\frac{\arctan \left (e^{\left (-d x - c\right )}\right )}{d} - \frac{e^{\left (-d x - c\right )} - e^{\left (-3 \, d x - 3 \, c\right )}}{d{\left (2 \, e^{\left (-2 \, d x - 2 \, c\right )} + e^{\left (-4 \, d x - 4 \, c\right )} + 1\right )}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.15486, size = 2931, normalized size = 41.87 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \operatorname{sech}^{2}{\left (c + d x \right )}\right ) \operatorname{sech}^{3}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.20099, size = 213, normalized size = 3.04 \begin{align*} \frac{{\left (\pi + 2 \, \arctan \left (\frac{1}{2} \,{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )} e^{\left (-d x - c\right )}\right )\right )}{\left (4 \, a + 3 \, b\right )}}{16 \, d} + \frac{4 \, a{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{3} + 3 \, b{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{3} + 16 \, a{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )} + 20 \, b{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}}{4 \,{\left ({\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{2} + 4\right )}^{2} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]